package net.sudot.chess.business.service;

import net.sudot.chess.business.dao.SigninDao;
import net.sudot.chess.business.model.Signin;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 签到
 *
 * @author tangjialin on 2018-03-05.
 */
@Service
public class SigninService extends BaseService<Signin> {

    @Resource
    private SigninDao signinDao;

    /**
     * 获取签到信息
     *
     * @param customerId 客户主键
     * @return 返回签到信息
     */
    public Signin findByCustomer(Long customerId) {
        return signinDao.findByCustomer(customerId);
    }
}
